#ifndef _UICOMMAND_
#define _UICOMMAND_

#ifdef PC
#include <stdio.h>
#endif 

#include "bufferQue.h"
#include <inttypes.h>

#define TEST_Q  2
#define OK_A    4

#define NNETW_Q 6  
#define NNETW_A 8

#define SETPID_Q    10

#define SYST_ON 12
#define SYST_OFF    14

#define NETW_Q  20
#define NETW_A  22

#define PDATA_A 24
#define PDATA_Q 26

#define SETMODE_Q   28
#define SETMODE_A   30

#define GETNMODE_Q  32
#define GETNMODE_A  34

#define UICMDDELIMITER 10

typedef struct {
    uint8_t value[6];
    uint8_t type;
} uiCommand;

#ifdef PC
void printUICMD( uiCommand uic );
#endif

int isUICMDSame( uiCommand uic1, uiCommand uic2 );

uiCommand makeUICMD (   uint8_t _type,
                        uint16_t val0, 
                        uint16_t val1, 
                        uint16_t val2, 
                        uint16_t val3, 
                        uint16_t val4, 
                        uint16_t val5   );

bufferQue makeBQue ( uiCommand uiC);

uiCommand parseBQue ( bufferQue bQ);


#endif

